Implement icon theme caching. (#154034, Martijn Vernooij, caching schema
authorMatthias Clasen <mclasen@redhat.com>
Tue, 19 Oct 2004 18:45:41 +0000 (18:45 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 19 Oct 2004 18:45:41 +0000 (18:45 +0000)
commit6fc2b8118a77a4d3f6d237d573805302db5e54b7
tree3705cce0a4866838f8230b0e369e1c080c27cfc2
parentb087f7655108019d797ca6096077443761915431
Implement icon theme caching. (#154034, Martijn Vernooij, caching schema

2004-10-19  Matthias Clasen  <mclasen@redhat.com>

Implement icon theme caching.  (#154034, Martijn Vernooij,
caching schema proposed by Owen Taylor, initial implementation
by Anders Carlsson)

* gtk/gtkdebug.h:
* gtk/gtkmain.c: Add a "icontheme" debug flag.

* gtk/Makefile.am (gtk_c_sources): Add gtkiconcache.c
(gtk_private_h_sources): Add gtkiconcache.h
(bin_PROGRAMS): Add gtk-update-icon-cache

* gtk/gtkicontheme.c: Use icon caches if they are available.
Currently, GTK+ uses the cache to get information about the
available sizes, image file formats and .icon files. The
actual image data, and the .icon file contents are not
cached yet.

* gtk/updateiconcache.c: A cmdline utility for generating
icon cache files.

* gtk/gtkiconcache.h:
* gtk/gtkiconcache.c: The glue code to mmap an icon cache
file and manage the information it contains.
16 files changed:
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/reference/ChangeLog
docs/reference/gtk/Makefile.am
docs/reference/gtk/gtk-docs.sgml
docs/reference/gtk/gtk-update-icon-cache.1 [new file with mode: 0644]
docs/reference/gtk/gtk-update-icon-cache.xml [new file with mode: 0644]
gtk/Makefile.am
gtk/gtkdebug.h
gtk/gtkiconcache.c [new file with mode: 0644]
gtk/gtkiconcache.h [new file with mode: 0644]
gtk/gtkicontheme.c
gtk/gtkmain.c
gtk/updateiconcache.c [new file with mode: 0644]